const fs = require('fs'),
      path = require('path'),
      process = require("process");
const staticPath = `${process.cwd()}/public`;


exports.index = (req, res, next) => {
    const files = fs.readdirSync(`${staticPath}/linchat/src/views`);

    res.render(`review`,{
        list:files.filter(pathName => {
            return !pathName.includes(`layout`) && !pathName.includes('reView');
        })
    })
};